package dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class BaseD {

    protected Connection conn = null;
    
    protected void initConnection() throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/food_manager?useSSL=false&useUnicode=true&characterEncoding=UTF-8", "root", "123456");
    }

    protected void closeConnection() throws Exception{
        conn.close();
    }
    
}
